//
// Created by Admin on 2021/9/20.
//

#ifndef PRACTISE5_ENTRY_H
#define PRACTISE5_ENTRY_H
#include <stdio.h>
#include <stdlib.h>
typedef struct {
    int score;
}Subject,*pSubject;

typedef struct {
    int number;
    char* name;
    pSubject subjects;
    int total_score;
    int rank;
}Student,*pStudent;

void inputInfo(pStudent students, int student_count, int subject_count);
void inputRandInfo(pStudent students, int student_count, int subject_count);
void subject_average(pStudent students,int student_count,int subject_count);
void student_total_average(pStudent students, int student_count, int subject_count);
void calc_student_total(pStudent students, int student_count, int subject_count);
void student_rank_by_Score(pStudent students, int student_count, int subject_count);
void calc_student_rank_by_Score(pStudent students, int student_count, int subject_count);
void student_rank_by_No(pStudent students, int student_count, int subject_count);
void student_rank_by_Name(pStudent students, int student_count, int subject_count);
void search_student_byNo(pStudent students, int student_count, int subject_count,int number);
void search_student_byName(pStudent students, int student_count, int subject_count,const char* name);
void statistic_(pStudent students, int student_count, int subject_count);
void outputInfo(pStudent students, int student_count, int subject_count);
#endif //PRACTISE5_ENTRY_H
